/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/10/31
 * @desc
 */
public class Thoroughbred {
	// 属性：私有
	private String mother;
	private String father;
	private int birthyear;

	// 构造函数
	public Thoroughbred(String mother, String father, int birthyear) {
		this.mother = mother;
		this.father = father;
		this.birthyear = birthyear;
	}

	// 操作：公有
	public int getCurrentAge() {
		int currentYear = java.time.Year.now().getValue();
		return currentYear - birthyear;
	}

	public String getFather() {
		return father;
	}

	public String getMother() {
		return mother;
	}
}
